From 6ef7b1c6967d13d430abd8a20344eb8b4e7d6056 Mon Sep 17 00:00:00 2001 From: Steven Hand Date: Mon, 4 Jun 2007 16:47:48 +0100 Subject: [PATCH] Ensure CR0.TS is set for VMX domains regardless of the current state of the real TS bit. This fixes a number of subtle FP corruption issues within PV domains when running alongside VMX ones. Signed-off-by: Steven Hand --- xen/arch/x86/hvm/vmx/vmcs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/hvm/vmx/vmcs.c b/xen/arch/x86/hvm/vmx/vmcs.c index a59fd6ba25..7c9802cbd7 100644 --- a/xen/arch/x86/hvm/vmx/vmcs.c +++ b/xen/arch/x86/hvm/vmx/vmcs.c @@ -337,7 +337,7 @@ static void construct_vmcs(struct vcpu *v) #endif /* Host control registers. */ - __vmwrite(HOST_CR0, read_cr0()); + __vmwrite(HOST_CR0, read_cr0() | X86_CR0_TS); __vmwrite(HOST_CR4, read_cr4()); /* Host CS:RIP. */ -- 2.30.2